import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

import {SwaggerComponent} from './swagger.component';

const routes: Routes = [
    {
        path: '',
        component: SwaggerComponent
    },
    {
        path: 'details/:iframeSrc',
        loadChildren: './swagger-details/swagger-details.module#SwaggerDetailsModule'
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SwaggerRoutingModule {
}
